package com.xxl.job.executor.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties("xxl.job")
public class XxlAutoRegisterProperties {

    private Executor executor;

    private AutoRegister autoRegister;

    @Data
    public static class Executor {
        private String appName = "test-appname";
        private String title = "test-title";
    }

    @Data
    public static class AutoRegister {
        private String author = "luncker";
        private String scheduleType = "CRON";
        private String misfireStrategy = "DO_NOTHING";
        private Integer executorTimeout = 0;
        private Integer executorFailRetryCount = 0;
        private String GlueType = "BEAN";
        private String executorBlockStrategy = "DISCARD_LATER";
    }

}
